package com.twxm.breed.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.twxm.breed.entity.WaterFactor;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface WaterFactorMapper extends BaseMapper<WaterFactor> {
    void insertWaterFactor(WaterFactor waterFactor);

    Integer selectIdByPondIdAndCollectionTime(WaterFactor waterFactor);

    void updateWaterFactor(WaterFactor waterFactor);

    List<WaterFactor> getByPondId(String pondId);

    List<String> getPondId();

    List<WaterFactor> getWaterInfo(String el);

    List<WaterFactor> getByPondIdAndDate(Map<String,Object> param);

    List<WaterFactor> getWaterInfoByDate(Date date);
}
